package com.taobao.ad.hadoop.common;

public class Pair implements Comparable<Pair>{
	public Pair(){
	}
	public Pair(Object key,Double value){
		this.key = key;
		this.value = value;
	}
	public Object getKey() {
		return key;
	}
	public void setKey(java.lang.Object key) {
		this.key = key;
	}
	public Double getValue() {
		return value;
	}
	public void setValue(Double value) {
		this.value = value;
	}
	private Object key;
	private Double value;
	
	@Override
	public int compareTo(Pair pair) {
		return value.compareTo(pair.value);
	}
	
}
